home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- echo TOP copyright (c) 1990,91,92 TNC Technology, All Rights Reserved, GTDR
- echo
- echo Welcome to the TOP INSTALL program!
- if not exist top.dat goto :e_notop
- set TDRV=c:
- if not /%TDRV%/==/c:/ goto :e_noenv
- set TPATH=\top
- if not /%TPATH%/==/\top/ goto :e_noenv
- if /%1/==// goto :tpath_ok
- set TDRV=%1
- if not /%TDRV%/==/%1/ goto :e_noenv
- if /%2/==// goto :tpath_ok
- set TPATH=\%2
- if not /%TPATH%/==/\%2/ goto :e_noenv
- :tpath_ok
- echo
- echo About to install TOP to %TDRV%%TPATH% ...
- echo
- echo If this is not OK, Press CONTROL+C to abort and restart with:
- echo
- echo INSTALL [drive_letter: [destination_path]]
- echo
- echo Note: Be sure to put a colon (:) after drive_letter.
- echo Do not use a leading or trailing backslash (\) before
- echo or after destination_path. Be sure to put a space between
- echo drive_letter: and destination_path.
- echo
- echo Examples: INSTALL --- will install TOP to C:\TOP
- echo
- echo INSTALL D: --- will install TOP to D:\TOP
- echo
- echo INSTALL D: TOOLS\TOP --- will install TOP to D:\TOOLS\TOP
- echo
- echo
- echo Press any key to install TOP to %TDRV%%TPATH%, or CONTROL+C to abort ...
- pause >NUL
- echo
- echo Installing TOP to %TDRV%%TPATH% ...
- echo
- echo Checking COMSPEC ...
- if exist %comspec% goto :comspec_ok
- if exist c:%comspec% set comspec=c:%comspec%
- if not exist %comspec% goto :e_nocomspec
- :comspec_ok
- echo COMSPEC ok.
- if not exist %TDRV%%TPATH%\*.* md %TDRV%%TPATH%
- echo Checking for old TOP files ...
- if not exist %TDRV%%TPATH%\top_cmds.txt goto :nocmds
- copy %TDRV%%TPATH%\top_cmds.txt %TDRV%%TPATH%\history.sav >NUL
- del %TDRV%%TPATH%\top_cmds.txt >NUL
- :nocmds
- if not exist %TDRV%%TPATH%\top_log.txt goto :nolog
- copy %TDRV%%TPATH%\top_log.txt %TDRV%%TPATH%\cron_log.sav >NUL
- del %TDRV%%TPATH%\top_log.txt >NUL
- :nolog
- if not exist %TDRV%%TPATH%\top_log.old goto :nooldlog
- copy %TDRV%%TPATH%\top_log.old %TDRV%%TPATH%\cron_log.old >NUL
- del %TDRV%%TPATH%\top_log.old >NUL
- :nooldlog
- if exist %TDRV%%TPATH%\top_cron del %TDRV%%TPATH%\top_cron >NUL
- echo Any existing old files updated.
- if not exist %TDRV%%TPATH%\top.hlp goto :newinstall
- echo Saving old TOP.HLP to TOPHLP.OLD ...
- copy %TDRV%%TPATH%\top.hlp %TDRV%%TPATH%\tophlp.old >NUL
- if not exist %TDRV%%TPATH%\tophlp.old goto :e_nocopy
- echo Saved.
- :newinstall
- echo Copying TOP data files ...
- copy top.dat %TDRV%%TPATH%\topzip.exe >NUL
- if not exist %TDRV%%TPATH%\topzip.exe goto :e_nocopy
- echo Copied.
- %TDRV%
- cd %TPATH%
- echo Decompressing files ...
- topzip -d -o >NUL
- if errorlevel 1 goto :e_nozip
- del topzip.exe >NUL
- copy %TDRV%%TPATH%\video\bounce.exe %TDRV%%TPATH%\video\life.exe >NUL
- if not exist %TDRV%%TPATH%\video\life.exe goto e_nocopy
- echo Decompressed.
- echo Updating TOP.INI ...
- echo
- topset -i
- if errorlevel 1 goto :e_noset
- echo
- echo TOP installation complete!
- echo
- echo Type TOP at the command prompt to start TOP.
- echo
- echo Up to date release information is available
- echo after starting TOP and typing:
- echo
- echo HELP !READ_ME
- echo
- echo HELP is also available by pressing F1, or by
- echo pressing your left and right mouse buttons
- echo simultaneously and releasing them over the word
- echo HELP. A left click on any word in the HELP window
- echo accesses HELP for that topic.
- echo
- echo It is recommended the TOP startup command be added
- echo as the last line of your AUTOEXEC.BAT file. To do
- echo this you would add the line:
- echo
- echo %TDRV%%TPATH%\top
- echo
- echo as the last line of your AUTOEXEC.BAT file.
- goto done
- :e_notop
- echo
- echo Whoops! You have to be logged on to the floppy drive
- echo for INSTALL to work!
- echo
- echo USAGE: INSTALL [drive_letter: [destination_path]]
- goto :done
- :e_nocopy
- echo
- echo There was an error during the copy of TOP data files to %TDRV%%TPATH%!
- echo
- echo Be sure there is enough room on drive %TDRV%-- about 900K bytes
- echo are required!
- echo
- echo Free up some space and try again!
- goto :done
- :e_nozip
- del topzip.exe >NUL
- echo
- echo An error occurred during the decompression of your TOP files!
- echo
- echo Be sure there is enough room on drive %TDRV%--about 900K bytes
- echo are required!
- echo
- echo Free up some space and try again!
- echo
- echo If there is sufficient disk space, the problem may have been
- echo caused by a corrupt data file on your distribution disk!
- echo
- echo Do not attempt to run TOP until the problem has been corrected!
- goto :done
- :e_nocomspec
- echo
- echo INSTALL is unable to locate COMMAND.COM using your COMSPEC!
- echo
- echo Please be sure your COMSPEC environment variable points to a valid
- echo location for COMMAND.COM.
- echo
- echo Example:
- echo set comspec=c:\dos\command.com
- goto :done
- :e_noenv
- echo
- echo An error occured while trying to write an environment variable!
- echo
- echo Probably you are out of environment space (do you see the message
- echo "Out of environment space"?). If so, please increase your
- echo environment space before running INSTALL. Only about 6 bytes
- echo are required for the default installation.
- echo
- echo To increase your environment space, include or modify the SHELL
- echo line in your config.sys file. For example:
- echo
- echo shell=c:\command.com /p /e:512
- echo └─environment size
- echo
- echo Either increase the environment size number, or try 512 if you
- echo have no number. Alternatively, you can remove some of your
- echo environment variables until installation is complete
- echo
- echo Please consult your DOS manual for more details
- goto :done
- :e_noset
- echo
- echo An error occurred during the update of your TOP.INI file!
- echo
- echo Be sure there is enough room on drive %TDRV%--at least 800Kbytes
- echo are required!
- echo
- echo Free up some space and try again!
- echo
- echo If there is sufficient disk space, the problem may have been
- echo caused by a corrupt data file on your distribution disk!
- echo
- echo Do not attempt to run TOP until the problem has been corrected!
- :done
- set TDRV=
- set TPATH=
- echo
- echo Bye!
-